<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <title>单位机构列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/js/commons/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/mng/index.css" media="all">
</head>
<body>

<form class="layui-form layui-form-pane" id="forms">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">机构名称</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="depName" name="depName" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否外部机构</label>
            <div class="layui-input-inline">
               <select name ="external" class="layui-select">
                   <option value="" selected>请选择</option>
                   <option value="0">否</option>
                   <option value="1">是</option>
               </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">机构类型</label>
            <div class="layui-input-inline">
                <select name ="depType" class="layui-select">
                    <option value="" selected>请选择</option>
                    <option value="1">单位</option>
                    <option value="2">部门</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">主管单位</label>
            <div class="layui-input-inline">
                <select name ="managerDep" class="layui-select">
                    <option value="" selected>请选择</option>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">父机构</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="pname" name="pname" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">负责人</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="respName" name="respName" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">负责人电话</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="respPhone" name="respPhone" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="linkName" name="linkName" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系人电话</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="linkPhone" name="linkPhone" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <button type="button" class="layui-btn" id="searchBtn">查询</button>
            <button type="reset" class="layui-btn" id="resetBtn">重置</button>
            <shiro:hasPermission name="dept_add">
                <button type="button" class="layui-btn" id="addBtn" onclick="add()">新增</button>
            </shiro:hasPermission>
        </div>
    </div>
</form>

<table class="layui-hide" id="allInfoTable" lay-filter="allInfoTable"></table>

<script type="text/html" id="rightToolbar">
    <shiro:hasPermission name="dept_edit">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dept_edit">编辑</a>
    </shiro:hasPermission>
   <!-- <shiro:hasPermission name="allInfo_detail">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dept_detail">详情</a>
    </shiro:hasPermission>-->
    <shiro:hasPermission name="dept_del">
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="dept_del">删除</a>
    </shiro:hasPermission>
</script>
</body>
</html>
<script charset="utf-8" src="/js/commons/layui/layui.all.js" ></script>
<script charset="utf-8" src="/js/commons/jquery.js"></script>
<script charset="utf-8" src="/js/commons/common.js"></script>
<script src="/js/mng/dept/dept_list.js"></script>